<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="city" @keyup.enter="searchWeather" placeholder="请输入查询城市天气">
        <button>搜索</button>
    <div>
        <a href="javascript:" @click="changeCity('北京')">北京</a>
        <a href="javascript:;" @click="changeCity('上海')">上海</a>
        <a href="javascript:;" @click="changeCity('广州')">广州</a>
        <a href="javascript:;" @click="changeCity('深圳')">深圳</a>       
    </div>
    <ul>
        <li v-for="item in weatherList">
            <span>{{item.type}}</span>
            <div>
            <b>{{item.low}}</b>
            ~
            <b>{{item.high}}}}</b>
            </div>
            <span>{{item.date}}</span>
        </li>
    </ul>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="tianZhiDao.js"></script>
</body>
</html>